import request from '@/utils/request'

// 查询测试列表
export function listTestttl(query) {
  return request({
    url: '/treatment/testttl/list',
    method: 'get',
    params: query
  })
}

// 查询测试详细
export function getTestttl(id) {
  return request({
    url: '/treatment/testttl/' + id,
    method: 'get'
  })
}

// 新增测试
export function addTestttl(data) {
  return request({
    url: '/treatment/testttl',
    method: 'post',
    data: data
  })
}

// 修改测试
export function updateTestttl(data) {
  return request({
    url: '/treatment/testttl',
    method: 'put',
    data: data
  })
}

// 删除测试
export function delTestttl(id) {
  return request({
    url: '/treatment/testttl/' + id,
    method: 'delete'
  })
}
